package Robot;
import java.awt.AWTException;
import java.awt.Robot;
import java.awt.event.InputEvent;
import java.awt.event.KeyEvent;
import java.util.*;
import java.io.*;

public class NotepadClass {
    public static void main(String[] args) throws AWTException {
        Runtime rs = Runtime.getRuntime();
        try{
          rs.exec("notepad");
        }
        catch (IOException e) {
            System.out.println(e);
        }
        Robot robot = new Robot();
        robot.keyPress(KeyEvent.VK_B);
        robot.keyPress(KeyEvent.VK_E);
        robot.keyPress(KeyEvent.VK_N);
        robot.keyPress(KeyEvent.VK_V);
        robot.keyPress(KeyEvent.VK_E);
        robot.keyPress(KeyEvent.VK_N);
        robot.keyPress(KeyEvent.VK_U);
        robot.keyPress(KeyEvent.VK_T);
        robot.keyPress(KeyEvent.VK_O);
        
        robot.delay(2000);
        robot.mouseMove(15, 750);
        robot.delay(5000);
        
        robot.mousePress(InputEvent.BUTTON1_MASK);
        robot.delay(200);
        robot.mouseRelease(InputEvent.BUTTON1_MASK);
        robot.delay(200);
    }
}
